package server.persistencia;

import java.util.Vector;

public class FiltroFicheros {
	private Vector<String> files;

	public Vector<String> loadFiles(String path) {
		this.files=new Vector<String>();
		this.load(path, files);
		return this.files;
	}

	private void load(String path, Vector<String> files) {
		String[] auxi=new java.io.File(path).list();
		for (String s : auxi) {
			if (s.startsWith("sudoku") && s.endsWith(".txt"))
				files.add(s);
		}
	}

}
